// var initalState = {lists: [{uesrname:null,time:null,is_hot:null}],display_name: 'none'};
var initalState = {lists: [{groupname:null,persons:null,is_hot:null,address:null}],display_name: 'none'};
// var initalState = {lists: [{id:null,name:null,time:null,text:null,image:null}],display_name: 'none'};
// var initalState = {lists:[{id:null,cname:null,cnation:null,content:null,cimage:null,cdate:null,cplay:null,pid:null}],display_name: 'none'};
function communitypic(state = initalState, action) {
  switch (action.type) {
    case 'GETLISTS': 
      return { ...state, lists: action.data };
    default: 
      return state;
  }
}

export default communitypic;